#include <stdio.h>
#include <math.h>

int 
main(void)
{
	float x, expression;
	
	puts("Enter x value:");
	scanf("%f", &x);

	// expression = 3.0f * (x * x * x * x * x) + 2.0f * (x * x * x * x) 
	// - 5.0f * (x * x * x) - (x * x) + 7.0f * (x) - 6.0f;
	
	expression = 3.0f * (powf(x, 5.0f)) + 2.0f * (powf(x, 4.0f)) -
		5.0f * (powf(x, 3.0f)) - powf(x, 2.0f) + 7.0f * (x) - 6.0f;
	printf("Result of the expression: %f\n", expression);

	return 0;
}
